Skip to content

Linaro / Windows: Use LLVM_CCACHE_BUILD instead of CMAKE_CXX_COMPILER_LAUNCHER #464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2025

Conversation

DavidSpickett
Copy link
Contributor

@DavidSpickett DavidSpickett commented Jun 9, 2025

There's nothing wrong with the latter - except that LLVM_CCACHE_BUILD knows that it should not be enabling pre-compiled headers on Windows.

See llvm/llvm-project#136856

We had a contributor report an issue with this, and it only got fixed when someone randomly managed to update the right files for an unrelated change.

/Fdtools\flang\lib\Parser\CMakeFiles\FortranParser.dir\FortranParser.pdb
-c -- C:/Users/tcwg/llvm-worker/flang-arm64-windows-msvc/llvm-project/flang/lib/Parser/preprocessor.cpp
fatal error: file
'C:\Users\tcwg\llvm-worker\flang-arm64-windows-msvc\llvm-project\llvm\include\llvm\Support\Compiler.h'
has been modified since the precompiled header
'C:/Users/tcwg/llvm-worker/flang-arm64-windows-msvc/build/tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/./cmake_pch.cxx.pch'
was built: size changed (was 26948, now 27102)
note: please rebuild precompiled header
'C:/Users/tcwg/llvm-worker/flang-arm64-windows-msvc/build/tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/./cmake_pch.cxx.pch'
1 error generated.

This sounds like a known issue, and if we use LLVM_CCACHE_BUILD, precompiled headers will be disabled. This is fine, our bots weren't relying on this anyway.

As far as I could tell we don't customise the ccache install at all either, so the defaults are all fine for us.

I've applied this to all 4 Windows bots:
clang-arm64-windows-msvc
clang-arm64-windows-msvc-2stage
flang-arm64-windows-msvc
lldb-aarch64-windows

The problem is with flang specifically, but we might as well standardise across them all.

…_LAUNCHER

There's nothing wrong with the latter - except that LLVM_CCACHE_BUILD
knows that it should not be enabling pre-compiled headers on Windows.

See llvm/llvm-project#136856

We had a contributor report an issue with this, and it only got fixed
when someone randomly managed to update the right files for an unrelated
change.

This sounds like a known issue, and if we use LLVM_CCACHE_BUILD,
precompiled headers will be disabled. This is fine, our bots weren't
relying on this anyway.

As far as I could tell we don't customise the ccache install at all
either, so the defaults are all fine for us.

I've applied this to all 4 Windows bots:
clang-arm64-windows-msvc
clang-arm64-windows-msvc-2stage
flang-arm64-windows-msvc
lldb-aarch64-windows

The problem is with flang specifically, but we might as well standardise
across them all.
@DavidSpickett DavidSpickett requested a review from omjavaid June 9, 2025 09:41
Copy link
Contributor

@omjavaid omjavaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!!

@DavidSpickett DavidSpickett merged commit bb44c37 into llvm:main Jun 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants